import request from '@/utils/request'

// 新增线任务
export function addLineTask(data) {
  return request({
    url: '/lineTask/lineInfo',
    method: 'post',
    data: data
  })
}

//根据ID删除线任务
export function deleteLineTaskById(id) {
  return request({
    url: '/lineTask/lineInfo/' + id,
    method: 'delete'
  })
}


// 查询线任务列表
export function getLineTaskList() {
  return request({
    url: '/lineTask/lineInfo/list',
    method: 'get',
  })
}
